//
//  Ext+UIImageView.swift
//  VBo
//
//  Created by 赵世得 on 2016/10/23.
//  Copyright © 2016年 Zh. All rights reserved.
//

import UIKit
import SDWebImage
extension UIImageView{
    convenience init(imgname: String) {
        self.init(image: UIImage(named: imgname))
    }
    
    func vb_setImg(withUrlString: String?, placeholderImgName: String?)
    {
        let url = URL(string: withUrlString ?? "")
        guard let u = url else {
            return
        }
        self.sd_setImage(with: u, placeholderImage: UIImage(named: placeholderImgName ?? ""))
        
    }
}
